package com.pd.pay.dao.util;

/**
 * @author: dong peng
 * @date: 2018/4/15 20:26
 * @description:
 */
public class DbUtil {

    private final static String PRIMARY = "primaryDataSource";

    private final static String SECONDARY = "secondaryDataSource";


    public static void setPrimary() {
        DataSourceContextHold.setType(PRIMARY);
    }

    public static void setSecondary() {
        DataSourceContextHold.setType(SECONDARY);
    }
}
